home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 22 / printset.zip / PRINTERS.C next >
C/C++ Source or Header  |  1985-08-13  |  15KB  |  229 lines

  1. /*  printer.c       setup for actual printers  */
  2.  
  3. struct pstuff printers[] = {
  4.  
  5.     "epson",
  6.     "\x1BP\x12",    /*  pica                            */
  7.     "\x1BM",        /*  elite                           */
  8.     "\x0F",         /*  compressed                      */
  9.     "\0",           /*  proportional                    */
  10.     "\x1BW1",       /*  expanded on                     */
  11.     "\x1BW0",       /*  expanded off                    */
  12.     "\x1BE",        /*  boldface on                     */
  13.     "\x1BF",        /*  boldface off                    */
  14.     "\x1B-1",       /*  underline on                    */
  15.     "\x1B-0",       /*  underline off                   */
  16.     "\x1B5",        /*  italics off                     */
  17.     "\x1B4",        /*  italics on                      */
  18.     "\0",           /*  second alt char set             */
  19.     "\0",           /*  graphics doesn't exist          */
  20.     "\x0C",         /*  form feed                       */
  21.     "\x1B2",        /*  1/6 inch                        */
  22.     "\x1B0",        /*  1/8 inch                        */
  23.     "\x1B@",        /*  reset printer                   */
  24.  
  25.     "prowriter",
  26.     "\x1BN",                           /*  pica                            */
  27.     "\x1BE",                           /*  elite                           */
  28.     "\x1BQ",                           /*  compressed                      */
  29.     "\x1BP",                           /*  proportional                    */
  30.     "\x0E",                            /*  expanded on                     */
  31.     "\x0F",                            /*  expanded off                    */
  32.     "\x1B!",                           /*  boldface on                     */
  33.     "\x1B\"",                          /*  boldface off                    */
  34.     "\x1BX",                           /*  underline on                    */
  35.     "\x1BY",                           /*  underline off                   */
  36.     "\x1B$",                           /*  normal character set            */
  37.     "\x1B&",                           /*  alternate char set (Greek)      */
  38.     "\0",                              /*  second alt char set             */
  39.     "\x1B#",                           /*  graphics char set               */
  40.     "\x0C",                            /*  form feed                       */
  41.     "\x1BA",                           /*  1/6 inch line spacing (normal)  */
  42.     "\x1BB",                           /*  1/8 inch line spacing           */
  43.     "\x1B$\x1BN\x0F\x1B\"\x1BY\x1BA",  /*  reset                           */
  44.  
  45.     "okidata-ibm",
  46.     "\x12",            /*  0 pica (compressed off)                           */
  47.     "\0",              /*  1 elite (not available)                           */
  48.     "\x0F",            /*  2 compressed                                      */
  49.     "\0",              /*  3 proportional                                    */
  50.     "\x1BW1",          /*  4 expanded on                                     */
  51.     "\x1BW0",          /*  5 expanded off                                    */
  52.     "\x1BE\x1BG",      /*  6 boldface on (both emphasized & enhanced)        */
  53.     "\x1BF\x1BH",      /*  7 boldface off                                    */
  54.     "\x1B-1",          /*  8 underline on                                    */
  55.     "\x1B-0",          /*  9 underline off                                   */
  56.     "\x1BX0\x1B7",     /* 10 normal character set (DP mode)                  */
  57.     "\x1B6",           /* 11 alternate char set                              */
  58.     "\x1BX1",          /* 12 second alt char set (Correspondence Mode)       */
  59.     "\0",              /* 13 graphics char set                               */
  60.     "\x0C",            /* 14 form feed                                       */
  61.     "\x1BA\x0C\x1B2",  /* 15 1/6 inch line spacing (normal)                  */
  62.     "\x1B0",           /* 16 1/8 inch line spacing                           */
  63.     "\x12\x1BW0\x1BF\x1BH\x1B-0\x1B0\x1bX0\x1B7\x1BA\x0C\x1B2", /*  17 reset */
  64.  
  65.     "ids-prism", 
  66.     "\x1d",            /*  0 pica (compressed off)                      */
  67.     "\x1e",            /*  1 elite(not available)                       */
  68.     "\x1f",            /*  2 compressed                                 */
  69.     "\x10",            /*  3 proportional                               */
  70.     "\x01",            /*  4 expanded on                                */
  71.     "\x02",            /*  5 expanded off                               */
  72.     "\0",              /*  6 boldface on (both emphasized & enhanced)   */
  73.     "\0",              /*  7  boldface off                              */
  74.     "\0",              /*  8 underline on                               */
  75.     "\0",              /*  9 underline off                              */
  76.     "\0",              /* 10 normal character set (DP mode)             */
  77.     "\0",              /* 11 alternate char set                         */
  78.     "\0",              /* 12 second alt char set (Correspondence Mode)  */
  79.     "\x03",            /* 13 graphics char set                          */
  80.     "\x0C",            /* 14 form feed                                  */
  81.     "\0",              /* 15 1/6 inch line spacing (normal)             */
  82.     "\0",              /* 16 1/8 inch line spacing                      */
  83.     "\x1d\x02",        /* 17 reset                                      */
  84.  
  85.     "okidata",
  86.     "\x1e",            /*  0 pica (compressed off)                      */
  87.     "\x1c",            /*  1 elite                                      */
  88.     "\x1d",            /*  2 compressed                                 */
  89.     "\0",              /*  3 proportional                               */
  90.     "\x1f",            /*  4 expanded on                                */
  91.     "\x1e",            /*  5 expanded off                               */
  92.     "\x1bT",           /*  6 boldface on (both emphasized & enhanced)   */
  93.     "\x1bI",           /*  7 boldface off                               */
  94.     "\x1bC",           /*  8 underline on                               */
  95.     "\x1bD",           /*  9 underline off                              */
  96.     "\x1b0",           /* 10 normal character set (DP mode)             */
  97.     "\x1b\x31",        /* 11 alt char set (Correspondence Mode)         */
  98.     "\x1b\x31",        /* 12 second alt char set (Correspondence Mode)  */
  99.     "\x03",            /* 13 graphics char set                          */
  100.     "\x0C",            /* 14 form feed                                  */
  101.     "\x1b6",           /* 15 1/6 inch line spacing (normal)             */
  102.     "\x1b8",           /* 16 1/8 inch line spacing                      */
  103.     "\x0C\x1b0\x1e\x1bI\x1bD\x1b6",  /* 17 reset                        */
  104.  
  105.     "proprinter",
  106.     "\x12",            /*  0 pica (compressed off)                      */
  107.     "\1B:",            /*  1 elite(not available)                       */
  108.     "\x0F",            /*  2 compressed                                 */
  109.     "\0",              /*  3 proportional                               */
  110.     "\x1BW1",          /*  4 expanded on                                */
  111.     "\x1BW0",          /*  5 expanded off                               */
  112.     "\x1BE",           /*  6 boldface on (both emphasized & enhanced)   */
  113.     "\x1BF",           /*  7  boldface off                              */
  114.     "\x1B-1",          /*  8 underline on                               */
  115.     "\x1B-0",          /*  9 underline off                              */
  116.     "\x1BH\x1B7",      /* 10 normal character set (DP mode)             */
  117.     "\x1B6",           /* 11 alternate char set                         */
  118.     "\x1BG",           /* 12 second alt char set (Correspondence Mode)  */
  119.     "\0",              /* 13 graphics char set                          */
  120.     "\x0C",            /* 14 form feed                                  */
  121.     "\x1BA\x0C\x1B2",  /* 15 1/6 inch line spacing (normal)             */
  122.     "\x1B0",           /* 16 1/8 inch line spacing                      */
  123.     "\x12\x1BW0\x1BF\x1BH\x1B-0\x1B7\x1BA\x0C\x1B2",  /* 17 reset       */
  124.  
  125.     "ibm-graphics",
  126.     "\x12",            /*  0 pica (compressed off)                      */
  127.     "\0",              /*  1 elite (not available)                      */
  128.     "\x0F",            /*  2 compressed                                 */
  129.     "\0",              /*  3 proportional                               */
  130.     "\x1BW1",          /*  4 expanded on                                */
  131.     "\x1BW0",          /*  5 expanded off                               */
  132.     "\x1BE\x1BG",      /*  6 boldface on (both emphasized & enhanced)   */
  133.     "\x1BF\x1BH",      /*  7  boldface off                              */
  134.     "\x1B-1",          /*  8 underline on                               */
  135.     "\x1B-0",          /*  9 underline off                              */
  136.     "\x1B7",           /* 10 normal character set                       */
  137.     "\x1B6",           /* 11 alternate char set                         */
  138.     "\0",              /* 12 second alt char set                        */
  139.     "\0",              /* 13 graphics char set                          */
  140.     "\x0C",            /* 14 form feed                                  */
  141.     "\x1B2",           /* 15 1/6 inch line spacing (normal)             */
  142.     "\x1B0",           /* 16 1/8 inch line spacing                      */
  143.     "\x12\x1BW0\x1BF\x1BH\x1B-0\x1B0\x1bX0\x1B7\x1BA\x0C\x1B2",
  144.                        /* 17 reset                                      */
  145.  
  146.     "gemini",
  147.     "\x1bB1\x12",      /*  sets 10 CPI                                  */
  148.     "\x1bB2",          /*  1 elite                                      */
  149.     "\x1bB3\x0F",      /*  2 compressed                                 */
  150.     "\0",              /*  3 proportional                               */
  151.     "\x1bW1",          /*  4 constant double width mode                 */
  152.     "\x1bW0",          /*  5 cancels double width mode                  */
  153.     "\x1bG",           /*  6 double strike                              */
  154.     "\x1bH",           /*  7 cancel double strike                       */
  155.     "\x1b-1",          /*  8 underline on                               */
  156.     "\x1b-0",          /*  9 underline off                              */
  157.     "\x1b5",           /* 10 normal character set (DP mode)             */
  158.     "\x1b4",           /* 11 alternate char set (Italics)               */
  159.     "\0",              /* 12 second alt char set (Correspondence Mode)  */
  160.     "\0",              /* 13 graphics char set                          */
  161.     "\x0C",            /* 14 form feed                                  */
  162.     "\x1b2",           /* 15 1/6 inch line spacing (normal)             */
  163.     "\x1b0",           /* 16 1/8 inch line spacing                      */
  164.     "\x1b@",           /* 17 reset                                      */
  165.  
  166.     "radio-shack",
  167.     "\0",                /*  0 pica (compressed off)                      */
  168.     "\x1b\x0f",          /*  1 elite(not available)                       */
  169.     "\0",                /*  2 compressed                                 */
  170.     "\x1b\x11",          /*  3 proportional                               */
  171.     "\0",                /*  4 expanded on                                */
  172.     "\0",                /*  5 expanded off                               */
  173.     "\0",                /*  6 boldface on (both emphasized & enhanced)   */
  174.     "\0",                /*  7  boldface off                              */
  175.     "\x0f",              /*  8 underline on                               */
  176.     "\x0e",              /*  9 underline off                              */
  177.     "\0",                /* 10 normal character set (DP mode)             */
  178.     "\0",                /* 11 alternate char set                         */
  179.     "\0",                /* 12 second alt char set (Correspondence Mode)  */
  180.     "\0",                /* 13 graphics char set                          */
  181.     "\x0C",              /* 14 form feed                                  */
  182.     "\0",                /* 15 1/6 inch line spacing (normal)             */
  183.     "\0",                /* 16 1/8 inch line spacing                      */
  184.     "\x1b\x0f\x0e",      /* 17 reset                                      */
  185.  
  186.     "oki100-ibm",
  187.     "\x12",            /*  0 pica (compressed off)                           */
  188.     "\x1B:",           /*  1 elite                                           */
  189.     "\x0F",            /*  2 compressed                                      */
  190.     "\0",              /*  3 proportional                                    */
  191.     "\x1BW1",          /*  4 expanded on                                     */
  192.     "\x1BW0",          /*  5 expanded off                                    */
  193.     "\x1BE",           /*  6 boldface on                                     */
  194.     "\x1BF",           /*  7 boldface off                                    */
  195.     "\x1B-1",          /*  8 underline on                                    */
  196.     "\x1B-0",          /*  9 underline off                                   */
  197.     "\x1BI1\x1B%H",    /* 10 normal character set (DP mode, Italics off)     */
  198.     "\x1BI1\x1B%G",    /* 11 alternate char set   (DP mode, Italics on)      */
  199.     "\x1BI3",          /* 12 second alt char set (Correspondence Mode)       */
  200.     "\0",              /* 13 graphics char set                               */
  201.     "\x0C",            /* 14 form feed                                       */
  202.     "\x1BA\x0C\x1B2",  /* 15 1/6 inch line spacing (normal)                  */
  203.     "\x1B0",           /* 16 1/8 inch line spacing                           */
  204.     "\x12\x1BW0\x1BF\x1B-0\x1BI1\x1B%H\x1BA\x0C\x1B2", /*           17 reset */
  205.  
  206.     "nec-pinwriter",
  207.     "\x1b\x3f1",       /*  0 pica (compressed off)                      */
  208.     "\x1b\x3f3",       /*  1 elite (not available)                      */
  209.     "\x1b\x3f7",       /*  2 compressed                                 */
  210.     "\x0f",            /*  3 proportional                               */
  211.     "\x1bW1",          /*  4 expanded on                                */
  212.     "\x1bW0",          /*  5 expanded off                               */
  213.     "\x1bE",           /*  6 boldface on (both emphasized & enhanced)   */
  214.     "\x1bF",           /*  7  boldface off                              */
  215.     "\x1b\x2dI",       /*  8 underline on                               */
  216.     "\x1b\x2d0",       /*  9 underline off                              */
  217.     "\x1b7",           /* 10 normal character set (DP mode)             */
  218.     "\x1b6",           /* 11 alternate char set                         */
  219.     "\0",              /* 12 second alt char set (Correspondence Mode)  */
  220.     "\0",              /* 13 graphics char set                          */
  221.     "\x0C",            /* 14 form feed                                  */
  222.     "\x1bA20\x1b2",    /* 15 1/6 inch line spacing (normal)             */
  223.     "\x1b0",           /* 16 1/8 inch line spacing                      */
  224.     "\x1b\x3f1\x1bW0\x1bF\x1b\x2d0\x1b7\x1b0",   /* 17 reset            */
  225.  
  226.     0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0  /*  Null-terminate the list  */
  227. };
  228.  
  229.